class Student(object):
    count = 0
    def __init__(self, name):
        self.name = name
        Student.count += 1

stu1 = Student('A')
stu2 = Student('B')
stu3 = Student('C')
print(Student.count)